package cn.ycxy.lbl.pojo.repairs.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 维修信息表
 * </p>
 *
 * @author BaoL
 * @since 2023-03-19
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@ApiModel(value="LblCsMaintainInfo对象", description="维修信息表")
public class LblCsMaintainInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "联系电话")
    @NotNull(message = "联系方式不能为空")
    private String mobilePhone;

    @ApiModelProperty(value = "维修地点")
    @NotNull(message = "维修地点不能为空")
    private String place;

    @ApiModelProperty(value = "详细地址")
    @NotNull(message = "详细地址不能为空")
    private String detailedAddress;

    @ApiModelProperty(value = "维修类型:0-宿舍报修；1-网络报修")
    @NotNull(message = "维修类型不能为空")
    private String type;

    @ApiModelProperty(value = "问题描述")
    @NotNull(message = "问题描述不能为空")
    private String questionDetailed;

    @ApiModelProperty(value = "故障图片集合, 例如:1.jpg,2.jpg,...")
    private String urls;

    @ApiModelProperty(value = "维修进度: 0-待处理,1-处理中,2-已完成,3-已撤销")
    private Integer status;

    @ApiModelProperty(value = "数据创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "数据最后更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime updateTime;


}
